﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
namespace BUS
{
    public class DebtBUS
    {
        public static DataTable LayKhoanVay(String makh, int loaikh)
        {
            return DebtDAO.LayKhoanVay(makh, loaikh);
        }
        public static DataTable BaoCaoDuNoLon()
        {
            return DebtDAO.BaoCaoDuNoLon();
        }

        public static int CapNhatKhoanVay(Entity.KhoanVay kv)
        {
            return DebtDAO.CapNhatKhoanVay(kv);
        }

        public static int ThemMoiKhoanVay(Entity.KhoanVay kv)
        {
            return DebtDAO.ThemMoiKhoanVay(kv);
        }
        public static int XoaKhoanVay(int makv)
        {
            return DebtDAO.XoaKhoanVay(makv);
        }
        public static DataTable LayKhoanVayTheoMaKH(String makh, int loaikh)
        {
            return DebtDAO.LayKhoanVayTheoMaKH(makh, loaikh);
        }


        public static DataTable LayKhoanVayDenHan()
        {
            return DebtDAO.LayKhoanVayDenHan();
        }
        public static DataTable LayKhoanVayDenHanTheoMaNV(int manv)
        {
            return DebtDAO.LayKhoanVayDenHanTheoMaNV(manv);
        }

    }
}
